﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DebugTool.aspx.cs" Inherits="Yule8xWxToolkit.Other.DebugTool" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>调试工具箱</title>
    <style type="text/css">
        fieldset {
            width: 700px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>

            <fieldset>
                <legend>Debug Mode</legend>
                <asp:CheckBox runat="server" ID="chkDebugMode" Text="调试模式" />
                <asp:CheckBox runat="server" ID="chkForbidUpdateGameDb" Text="禁止更新游戏库" /><br />
                <asp:Button runat="server" ID="btn_save_debugmode" OnClick="btn_save_debugmode_Click" Text="保存" />
            </fieldset>
            <fieldset>
                <legend>OneCent Users(逗号隔开)</legend>
                <asp:TextBox runat="server" ID="tb_onecentusers" Width="670"></asp:TextBox><br />
                <asp:Button runat="server" ID="btn_save_onecentusers" OnClick="btn_save_onecentusers_Click" Text="保存" />
            </fieldset>
            <fieldset>
                <legend>限时活动</legend>
                <asp:CheckBox runat="server" ID="chk_event_status" Text="状态" />
                金额：<asp:TextBox runat="server" ID="tb_event_coin_number" Width="140"></asp:TextBox><br />
                时间1：
                <asp:TextBox runat="server" ID="tb_event_start_time1" placeholder="xx:xx:xx"></asp:TextBox>
                至
                <asp:TextBox runat="server" ID="tb_event_end_time1" placeholder="xx:xx:xx"></asp:TextBox><br />
                时间2：
                <asp:TextBox runat="server" ID="tb_event_start_time2" placeholder="xx:xx:xx"></asp:TextBox>
                至
                <asp:TextBox runat="server" ID="tb_event_end_time2" placeholder="xx:xx:xx"></asp:TextBox><br />
                时间3：
                <asp:TextBox runat="server" ID="tb_event_start_time3" placeholder="xx:xx:xx"></asp:TextBox>
                至
                <asp:TextBox runat="server" ID="tb_event_end_time3" placeholder="xx:xx:xx"></asp:TextBox><br />
                <asp:Button runat="server" ID="btn_save_event" OnClick="btn_save_event_Click" Text="保存" />
            </fieldset>
            <fieldset>
                <legend>超级验证码(逗号隔开)</legend>
                <asp:TextBox runat="server" ID="tb_captcha" Width="670"></asp:TextBox><br />
                <asp:Button runat="server" ID="btn_save_captcha" OnClick="btn_save_captcha_Click" Text="保存" />
            </fieldset>
            <fieldset>
                <legend>用户关注微信欢迎词</legend>
                <asp:TextBox runat="server" ID="tb_welcomestr" TextMode="MultiLine" Columns="90" Rows="6"></asp:TextBox><br />
                <asp:Button runat="server" ID="btn_save_welcomestr" OnClick="btn_save_welcomestr_Click" Text="保存" />
            </fieldset>
            <fieldset>
                <legend>微信公众号菜单</legend>
                <asp:TextBox runat="server" ID="tb_menu" TextMode="MultiLine" Columns="90" Rows="6"></asp:TextBox><br />
                <asp:Button runat="server" ID="btn_save_menu" OnClick="btn_save_menu_Click" Text="保存" />
                <asp:Button runat="server" ID="btn_init_menu" OnClick="btn_init_menu_Click" Text="重新初始化" />
            </fieldset>
            <fieldset>
                <legend>微信暗号管理(关键词和内容之间以冒号隔开)</legend>
                <asp:TextBox runat="server" ID="tb_keywords" TextMode="MultiLine" Columns="90" Rows="6"></asp:TextBox><br />
                <asp:Button runat="server" ID="btn_save_keywords" OnClick="btn_save_keywords_Click" Text="保存" />
            </fieldset>
            <fieldset>
                <legend>微信渠道推广二维码生成器</legend>
                <%
                    string qrsence = Request.QueryString["qrsence"];
                    if (!string.IsNullOrEmpty(qrsence))
                    {
                        if (qrsence.Contains('"') || qrsence.Contains('%'))
                        {
                            qrsence = string.Empty;
                        }
                        else
                        {
                            tb_qrsence.Text = qrsence;
                        }
                    }
                %>
                <asp:TextBox runat="server" ID="tb_qrsence"></asp:TextBox><br />
                <%
                    if (!string.IsNullOrEmpty(qrsence))
                    {
                        Response.Write("<img src='../Qrcode/GetUserQRCode.aspx?tag=" + qrsence + "' style='width:240px;' />");
                    } %>

                <asp:Button runat="server" ID="btn_save_qrsence" OnClick="btn_save_qrsence_Click" Text="保存" />
                <a href="TGReport.aspx" target="_blank">[查询推广报告]</a>
            </fieldset>
        </div>
    </form>
</body>
</html>
